package com.example.itemprocessor.skipListener;

import org.springframework.batch.core.SkipListener;
import org.springframework.stereotype.Component;

/**
 * @author XieYa
 */
@Component
public class MySkipListener implements SkipListener<Object, Object> {
    @Override
    public void onSkipInRead(Throwable throwable) {

    }

    @Override
    public void onSkipInWrite(Object o, Throwable throwable) {

    }

    @Override
    public void onSkipInProcess(Object o, Throwable throwable) {
        System.out.println(o + " occur exception");
    }
}
